<template>
  <div class="message">
      <div class="top_tool">
        <span>Message</span>
      </div>
      <div class="message_content">
        <div class="textarea">
          <el-input
            type="textarea"
            :rows="10"
            placeholder="请输入内容"
            v-model="textarea"
          >
          </el-input>
        </div>
        <div class="sendbar">
          <label>sendTo</label>
          <el-input placeholder="请输入内容" v-model="value" class="input-with-select">
            <el-select v-model="select" slot="prepend" placeholder="请选择">
              <el-option label="online" value="1"></el-option>
              <el-option label="local" value="2"></el-option>
            </el-select>
            <el-button slot="append" type="success" style="background:#67C23A;color:#ffffff;">send</el-button>
          </el-input>
        </div>
      </div>
  </div>
</template>

<script>
export default {
  name: 'Message',
  data () {
    return {
      textarea: 'Welcome to message',
      options: [{
          value: 'online',
          label: 'online'
        }, {
          value: 'local',
          label: 'local'
        }],
        value:'',
        select: 'online'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
  .message{
    .top_tool{
      height: 60px;
      width: 100%;
      background-color: #274582;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      color: #ffffff;
      span{
        margin-left: 20px;
      }
      a{
        margin-left: 20px;
      }
    }
    .message_content{
      padding: 20px;
      .sendbar{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-top: 20px;
        label{
          margin-right: 10px;
        }
        .el-select{
          width: 130px;
        }
        .input-with-select .el-input-group__prepend {
          background-color: #fff;
        }
      }
    }
  }
</style>
